﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Domain;

namespace Data.Repositories
{
    public class DatasRepository
    {
        ModeloCantinhoContainer ctx = new ModeloCantinhoContainer();

        public string[] GetPessoasFamosas(DateTime data)
        {
            string datastr = data.ToString("dd-MM");
            return ctx.DatasFamosas.Where(x => x.Data == datastr ).Select(x=>x.Nome).ToArray();
        }
    }
}
